package org.dromara.business.constant;

import java.math.BigDecimal;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public interface VipConstants {
    //直接升级价格
    BigDecimal V1_AMOUNT = new BigDecimal("6600");
    BigDecimal V2_AMOUNT = new BigDecimal("19800");
    BigDecimal V3_AMOUNT = new BigDecimal("59400");
    BigDecimal V7_AMOUNT = new BigDecimal("356400");

    static BigDecimal getAmount(String vip) {
        if ("1".equals(vip)) {
            return V1_AMOUNT;
        }
        if ("2".equals(vip)) {
            return V2_AMOUNT;
        }
        if ("3".equals(vip)) {
            return V3_AMOUNT;
        }
        if ("7".equals(vip)) {
            return V7_AMOUNT;
        }
        return BigDecimal.ZERO;
    }

    //直接推荐奖励
    BigDecimal V1_REWARD = new BigDecimal("0.2");
    BigDecimal V2_REWARD = new BigDecimal("0.3");
    BigDecimal V3_REWARD = new BigDecimal("0.4");
    BigDecimal V7_REWARD = new BigDecimal("0.4");

    static BigDecimal getReward(String vip) {
        if ("1".equals(vip)) {
            return V1_REWARD;
        }
        if ("2".equals(vip)) {
            return V2_REWARD;
        }
        if ("3".equals(vip) || "4".equals(vip) || "5".equals(vip) || "6".equals(vip)) {
            return V3_REWARD;
        }
        if ("7".equals(vip)) {
            return V7_REWARD;
        }
        return BigDecimal.ZERO;
    }

    //补货价格
    BigDecimal V1_BH_AMOUNT = new BigDecimal("550");
    BigDecimal V2_BH_AMOUNT = new BigDecimal("440");
    BigDecimal V3_BH_AMOUNT = new BigDecimal("330");
    BigDecimal V7_BH_AMOUNT = new BigDecimal("330");

    static BigDecimal getBhAmount(String vip) {
        if ("1".equals(vip)) {
            return V1_BH_AMOUNT;
        }
        if ("2".equals(vip)) {
            return V2_BH_AMOUNT;
        }
        if ("3".equals(vip) || "4".equals(vip) || "5".equals(vip) || "6".equals(vip)) {
            return V3_BH_AMOUNT;
        }
        if ("7".equals(vip)) {
            return V7_BH_AMOUNT;
        }
        return BigDecimal.ZERO;
    }

}
